package com.baizhi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Administrator
 */
@Data
@Document(collection = "runoob")
public class LogBean {

    /**
     * 参数
     */
    @Field(name = "params")
    private String params;
    /**
     * 切点参数
     */
    @Field(name = "args")
    private String args;
    /**
     * 方法名称
     */
    @Field(name = "methodName")
    private String methodName;
    /**
     * 方法描述
     */
    @Field(name = "methodSwaggerV")
    private String methodSwaggerV;
    /**
     * 类型名称
     */
    @Field(name = "typeName")
    private String typeName;

    @Field(name = "typeNameSwaggerDesc")
    private String typeNameSwaggerDesc;
    /**
     * 访问路径
     */
    @Field(name = "requestUrl")
    private String requestUrl;

    /**
     * utc时间
     * 创建时间
     */
    @Field(name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
